﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace sixgod.Model.User
{
    [SugarTable("Department","部门")]
    public class Department:ModelBase
    {
        public string Name{get;set;}



        public string ParentCode{get;set;}

        [Navigate(NavigateType.OneToOne,nameof(ParentCode),nameof(Department.Id))]
        public Department ParentDepartment{get;set;}
    }
}
